﻿using ATHTaskList2012.Entities;
using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ATHTaskList2012.Mappings
{
    public class UserMap : ClassMap<User>
    {
        public UserMap()
        {
            Table("User");
            Id(x => x.id);
            Map(x => x.username);
            HasMany(x => x.tasks).Cascade.All();
        }
    }
}